<?php
$this->breadcrumbs = array(
    $model->label(2) => array('index'),
    GxHtml::valueEx($model),
);

$this->menu = array(
    //array('label'=>Yii::t('app', 'List') . ' ' . $model->label(2), 'url'=>array('index')),
    array('label' => Yii::t('app', 'Create') . ' ' . $model->label(), 'url' => array('create')),
    //array('label'=>Yii::t('app', 'Update') . ' ' . $model->label(), 'url'=>array('update', 'id' => $model->id)),
    //array('label'=>Yii::t('app', 'Delete') . ' ' . $model->label(), 'url'=>'#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm'=>'Are you sure you want to delete this item?')),
    array('label' => Yii::t('app', 'Manage') . ' ' . $model->label(2), 'url' => array('admin')),
);
?>

<h3><?php echo Yii::t('app', 'View Users'); ?></h1>

<?php
$this->widget('zii.widgets.CDetailView', array(
    'data' => $model,
    'attributes' => array(
        'username',
        
        array
            (
            'name' => 'First Name',
            'value' => isset($model->profiles[0]->first_name)?$model->profiles[0]->first_name:'No data',
        ),
        array
            (
            'name' => 'Last Name',
            'value' => isset($model->profiles[0]->last_name)?$model->profiles[0]->last_name:'No data',
        ),
        array
            (
            'name' => 'Date of Birth',
            'value' => isset($model->profiles[0]->date_of_birth)?$model->profiles[0]->date_of_birth:'No data',
        ),
        array
            (
            'name' => 'Phone No',
            'value' => isset($model->profiles[0]->phone)?$model->profiles[0]->phone:'No data',
        ),
        array
            (
            'name' => 'Knowlarity Ext No',
            'value' => isset($model->profiles[0]->knowlarity_ext_no)?$model->profiles[0]->knowlarity_ext_no:'No data',
        ),
        
        array
            (
            'name' => 'About user',
            'type'=>'html',
            'value' => isset($model->profiles[0]->about)?$model->profiles[0]->about:'No data',
        ),
        array
            (
            'name' => 'Experience',
            'type'=>'html',
            'value' => isset($model->profiles[0]->experience)?$model->profiles[0]->experience:'No data',
        ),
        array
            (
            'name' => 'Other Information',
            'type'=>'html',
            'value' => isset($model->profiles[0]->other_info)?$model->profiles[0]->other_info:'No data',
        ),
        array
            (
            'name' => 'status',
            'type' => 'image',
            'htmlOptions' => array('class' => 'gridmaxwidth', 'style' => 'width: 15px !important'),
            'value' => SkillConfig::status($model),
        ),
        array(
            'name' => 'createtime',
            'value' => date('Y-m-d', $model->createtime),
        ),
       
    ),
));
?>


